﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Pascdraw
{
    public partial class codigo : Form
    {
        public codigo()
        {
            InitializeComponent();
            this.Tag = richTextBox1;
        }
        public void set_text(string texto)
        {
            richTextBox1.Text = texto;
        }
        public void clean_text()
        {
            richTextBox1.Text = "";
        }
        public string get_text()
        {
            return richTextBox1.Text;
        }

        private void copyToolStripButton_Click(object sender, EventArgs e)
        {
            Clipboard.SetText(richTextBox1.Text);
        }
    }
}
